﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class MenuButton : MonoBehaviour
{
    public GameObject victoryRecord,inputPlayerName;

    private void OnEnable()
    {
        DisplayRecordList();
    }
    public void PlayOnClick() 
    {
        inputPlayerName.SetActive(true);
    }

    public void RecordOnClick() 
    {
        victoryRecord.SetActive(true);
    }

    public void CloseOnClick()
    {
        gameObject.SetActive(false);
    }

    public void DisplayRecordList()
    {
        if (victoryRecord.activeSelf == true)
        {
            RecordManager.RefreshRecordList();
        }
    }

}
